package com.zero2oneblog.service.impl;

//import com.zero2oneblog.entity.User;
//import com.zero2oneblog.mapper.UserMapper;
import com.zero2oneblog.entity.User;
import com.zero2oneblog.mapper.UserMapper;
import com.zero2oneblog.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liangjiu
 * @since 2024-01-09
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUser(String id) {

//        return userMapper.getUserWithPostsAndComments(id);
        return userMapper.hello(id);
    }

//    @Override
//    public void getUserWithPostsAndComments(String id) {
//        return userMapper.
//    }
}
